package com.rwx.appcontext;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class Component2 {

    //private static final Logger log=LoggerFactory.getLogger(Component2.class);


    @EventListener
    public void register(UserRegisteredEvent event){
        log.info("{}",event);
        log.info("发短信");
    }
}
